package com.dev.bbs.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Id;

import com.dev.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import lombok.experimental.Accessors;
import tk.mybatis.mapper.annotation.KeySql;

/**
 * 用户文章收藏对象 bbs_user_collect
 * 
 * @author dev
 * @date 2019-09-23
 */
@Data
@Accessors(chain = true)
public class BbsUserCollect implements Serializable
{
    //
    private static final long serialVersionUID = -2180279214162403144L;

    /** id */
    @Id
    @KeySql(useGeneratedKeys = true)
    private Long              collectId;

    /** 用户主键 */
    @Excel(name = "用户主键")
    private Long              userId;

    /** 帖子编号 */
    @Excel(name = "帖子编号")
    private Long              artId;

    /** 帖子编号 */
    @Excel(name = "帖子编号")
    private String            title;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date              createTime;
}
